﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Text;
using TL_Cloud.Models.BookShop;

namespace TL_Cloud.ViewModels.BookShop.BaseClass
{
    public class BaseClassResource: BaseClassUpdateResource
    {
        public string ClassId { get; set; }
      
     
     
    }
    /// <summary>
    /// 班级信息的基础资源
    /// </summary>
    public class BaseClassBasicResource
    {
        /// <summary>
        /// 班级名称
        /// </summary>
        public string ClassName { get; set; }
        /// <summary>
        /// 备注信息
        /// </summary>
        public string Remark { get; set; } 

        /// <summary>
        /// 排序值
        /// </summary>
        public int? Sort { get; set; }
    }

    public class BaseClassAddResource: BaseClassBasicResource
    {

    }

    public class BaseClassUpdateResource : BaseClassBasicResource
    {
        public int? EnabledMark { get; set; }
    }


    public class BaseClassMappingProfile : Profile
    {
        public BaseClassMappingProfile()
        {
            CreateMap<Base_ClassInfo, BaseClassResource>();
            CreateMap<BaseGradeResource, Base_ClassInfo>();
            CreateMap<BaseClassAddResource, Base_ClassInfo>();
            CreateMap<BaseClassUpdateResource, Base_ClassInfo>();
        }
    }


}
